import java.util.Scanner;

/**
 * @author zhaoqian
 * @create 2021/8/31 11:01
 */
public class gongbeishu {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()){
            int i = in.nextInt();
            int j= in.nextInt();
            int c=0;
            for (int q=2;q<=i&&q<=j;q++){
                if (i%q==0&&j%q==0){
                    c=q;   //最大公约数
                }
            }
            if (c!=0) {
                System.out.println(i * j / c);
            }
            else {
                System.out.println(i*j);
            }
        }
    }
}
